﻿#ifndef JZ_IMAGE_Graphic_H_
#define JZ_IMAGE_Graphic_H_

#include <QRect>
#include <QColor>
#include <QVariantList>

class QPainter;
class JZGraphic
{
public:
    enum Type{
        None,
        Point,
        Line,
        Text,
        TextBox,  //两个点表示矩形
        Circle,   //两个点表示矩形
        Ellipse,  
        RotateRect, 
        Rect,     //两个点表示矩形
        Polygon,
    };
    
    JZGraphic();
    void draw(QPainter *painter);
    
    Type type;
    QVector<QPoint> points;
    QVariantList params;
    QString text;
    Qt::Alignment textAlign;
    QColor color;
};

#endif